package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.common.core.domain.entity.InviteRecord;
import com.ruoyi.common.core.domain.entity.UserPrizeRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 参数配置 数据层
 *
 * @author ruoyi
 */
@Mapper
@Repository
public interface UserPrizeRecordMapper extends BaseMapper<UserPrizeRecord> {
    /**
     * 获取用户中奖记录
     */
    List<UserPrizeRecord> selectUserPrizeRecordList(Long userId);
    /**
     * 保存用户中奖记录
     */
    int saveUserPrizeRecord(UserPrizeRecord userPrizeRecord);
    /**
     * 根据id查询中奖记录
     */
    UserPrizeRecord selectUserPrizeRecordById(@Param("id") Long id);
    /**
     * 根据id更新中奖记录
     */
    int updateUserPrizeRecord(UserPrizeRecord userPrizeRecord);
}
